package com.ruoyi.buss.grid.sq.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.buss.grid.sh.domain.DataGtgsh;
import com.ruoyi.buss.group.domain.DataCustomerGroup;
import com.ruoyi.buss.qmcy.domain.QmcyCustPersonalInfo;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import java.util.Date;
import java.util.List;

/**
 * 网格社区对象 DATA_WG_WGSQ
 * 
 * @author sxy
 * @date 2021-07-16
 */
public class DataWgWgsq extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty("机构ID")
    @Excel(name = "id")
    private String id;

    /** 户籍编号 */
    @Excel(name = "户籍编号")
    @ApiModelProperty("户籍编号")
    private String hjbh;

    /** 户主姓名 */
    @Excel(name = "户主姓名")
    @ApiModelProperty("户主姓名")
    private String hzxm;

    /** 姓名 */
    @Excel(name = "姓名")
    @ApiModelProperty("姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    /** 身份证 */
    @Excel(name = "身份证")
    @ApiModelProperty("身份证")
    @NotBlank(message = "身份证不能为空")
    private String idCard;

    /** 性别 0女 1男 */
    @Excel(name = "性别 0女 1男")
    @ApiModelProperty("性别 0女 1男")
    private String sex;

    /** 年龄 */
    @Excel(name = "年龄")
    @ApiModelProperty("年龄")
    private int age;

    /** 与户主关系 1户主 2配偶 3.父母 4子女  5其它 */
    @Excel(name = "与户主关系 1户主 2配偶 3.父母 4子女  5其它")
    @ApiModelProperty("与户主关系 1户主 2配偶 3.父母 4子女  5其它")
    private String yhzgx;

    /** 所属上级社区 */
    @Excel(name = "所属社区")
    @NotBlank(message = "所属社区不能为空")
    @ApiModelProperty("所属社区")
    private String sssjsq;

    /** 所属小区 */
    @Excel(name = "所属小区")
    @NotBlank(message = "所属小区不能为空")
    @ApiModelProperty("所属小区")
    private String sssq;

    /** 长期居住 0否 1是 */
    @Excel(name = "长期居住 0否 1是")
    @ApiModelProperty("长期居住 0否 1是")
    private String longLive;

    /** 村居地址 */
    @Excel(name = "村居地址")
    @ApiModelProperty("村居地址")
    private String address;

    /** 居住地址 */
    @Excel(name = "居住地址")
    @ApiModelProperty("居住地址")
    private String jzAddress;

    /** 家庭人口 */
    @Excel(name = "家庭人口")
    @ApiModelProperty("家庭人口")
    private String labour;

    /** 社区活动参与次数 */
    @Excel(name = "社区活动参与次数")
    @ApiModelProperty("社区活动参与次数")
    private String joinActive;

    /** 客户类型 0 普通客户 1潜在客户 2重点客户 */
    @Excel(name = "客户类型 0 普通客户 1潜在客户 2重点客户")
    @ApiModelProperty("客户类型 0 普通客户 1潜在客户 2重点客户")
    private String customerType;

    /** 客户星级  1一星 2二星 3三星 4四星 5五星 */
    @Excel(name = "客户星级  1一星 2二星 3三星 4四星 5五星")
    @ApiModelProperty("客户星级  1一星 2二星 3三星 4四星 5五星")
    private String level;

    /** 贫困户  0否  1是 */
    @Excel(name = "贫困户  0否  1是")
    @ApiModelProperty("贫困户  0否  1是")
    private String pkh;

    /** 本行黑名单 0否 1是 */
    @Excel(name = "本行黑名单 0否 1是")
    @ApiModelProperty("本行黑名单 0否 1是")
    private String black;

    /** 管户机构 */
    @Excel(name = "管户机构")
    @ApiModelProperty("管户机构")
    private String orgId;

    /** 管户经理 */
    @Excel(name = "管户经理")
    @ApiModelProperty("管户经理")
    private String managerId;

    /** 逻辑经度 */
    @Excel(name = "逻辑经度")
    @ApiModelProperty("逻辑经度")
    private String luojiJingdu;

    /** 逻辑纬度 */
    @Excel(name = "逻辑纬度")
    @ApiModelProperty("逻辑纬度")
    private String luojiWeidu;

    /** 真实经度 */
    @Excel(name = "真实经度")
    @ApiModelProperty("真实经度")
    private String zhenshiJingdu;

    /** 真实纬度 */
    @Excel(name = "真实纬度")
    @ApiModelProperty("真实纬度")
    private String zhenshiWeidu;

    /** 联系电话 */
    @Excel(name = "联系电话")
    @ApiModelProperty("联系电话")
    private String phone;

    /** 是否拓展客户 0否 1是 */
    @Excel(name = "是否拓展客户 0否 1是")
    @ApiModelProperty("是否拓展客户 0否 1是")
    private String isExpand;

    /** 是否个体工商户 0否 1是 */
    @Excel(name = "是否个体工商户 0否 1是")
    @ApiModelProperty("是否个体工商户 0否 1是")
    private String ifGtgsh;

    /** 0正常  1已删除 */
    @Excel(name = "0正常  1已删除")
    @ApiModelProperty("0正常  1已删除")
    private String delFlag;

    /** 联网核查反馈 */
    @Excel(name = "联网核查反馈")
    @ApiModelProperty("联网核查反馈")
    private String feedBack;

    /** $column.columnComment */
    @Excel(name = "联网核查反馈")
    @ApiModelProperty("联网核查反馈")
    private String createUser;

    /** 法定代表人 */
    @Excel(name = "法定代表人")
    @ApiModelProperty("法定代表人")
    private String fddbr;

    /** 法定代表证件 */
    @Excel(name = "法定代表证件")
    @ApiModelProperty("法定代表证件")
    private String fddbrzjhm;

    /** 实际经营人姓名 */
    @Excel(name = "实际经营人姓名")
    @ApiModelProperty("实际经营人姓名")
    private String sjjyr;

    /** 实际经营人证件 */
    @Excel(name = "实际经营人证件")
    @ApiModelProperty("实际经营人证件")
    private String sjjyrzjhm;

    /** 商户证件号码 */
    @Excel(name = "商户证件号码")
    @ApiModelProperty("商户证件号码")
    private String shZjhm;

    /**产品标签*/
    private List<QmcyCustPersonalInfo> proLabel;

    /**群体标签*/
    @NotEmpty(message ="客群标签不能为空")
    List<DataCustomerGroup> groupLabel;

    /**头像*/
    private String headPic;

    private String planName;
    
	

	/**
	 * 任务开始时间
	 */
    @ApiModelProperty(value = "任务开始时间")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date beginDate;
	/**
	 * 任务结束时间
	 */
    @ApiModelProperty(value = "任务结束时间")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date endDate;
    
    public Date getBeginDate() {
		return beginDate;
	}
	

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}


	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getPlanName() {
		return planName;
	}

	public void setPlanName(String planName) {
		this.planName = planName;
	}

	private List<DataGtgsh> dataGtgsh;

    public List<QmcyCustPersonalInfo> getProLabel() {
        return proLabel;
    }

    public void setProLabel(List<QmcyCustPersonalInfo> proLabel) {
        this.proLabel = proLabel;
    }

    public List<DataCustomerGroup> getGroupLabel() {
        return groupLabel;
    }

    public void setGroupLabel(List<DataCustomerGroup> groupLabel) {
        this.groupLabel = groupLabel;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        //默认返回头像
        if ("0".equals(this.sex)) {
            this.headPic = "WOMAN" ;
        } else {
            this.headPic ="MAN" ;
        }
    }

    public List<DataGtgsh> getDataGtgsh() {
        return dataGtgsh;
    }

    public void setDataGtgsh(List<DataGtgsh> dataGtgsh) {
        this.dataGtgsh = dataGtgsh;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setHjbh(String hjbh) 
    {
        this.hjbh = hjbh;
    }

    public String getHjbh() 
    {
        return hjbh;
    }
    public void setHzxm(String hzxm) 
    {
        this.hzxm = hzxm;
    }

    public String getHzxm() 
    {
        return hzxm;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setAge(int age)
    {
        this.age = age;
    }

    public int getAge()
    {
        return age;
    }
    public void setYhzgx(String yhzgx) 
    {
        this.yhzgx = yhzgx;
    }

    public String getYhzgx() 
    {
        return yhzgx;
    }
    public void setSssjsq(String sssjsq) 
    {
        this.sssjsq = sssjsq;
    }

    public String getSssjsq() 
    {
        return sssjsq;
    }
    public void setSssq(String sssq) 
    {
        this.sssq = sssq;
    }

    public String getSssq() 
    {
        return sssq;
    }
    public void setLongLive(String longLive) 
    {
        this.longLive = longLive;
    }

    public String getLongLive() 
    {
        return longLive;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setJzAddress(String jzAddress) 
    {
        this.jzAddress = jzAddress;
    }

    public String getJzAddress() 
    {
        return jzAddress;
    }
    public void setLabour(String labour) 
    {
        this.labour = labour;
    }

    public String getLabour() 
    {
        return labour;
    }
    public void setJoinActive(String joinActive) 
    {
        this.joinActive = joinActive;
    }

    public String getJoinActive() 
    {
        return joinActive;
    }
    public void setCustomerType(String customerType) 
    {
        this.customerType = customerType;
    }

    public String getCustomerType() 
    {
        return customerType;
    }
    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }
    public void setPkh(String pkh) 
    {
        this.pkh = pkh;
    }

    public String getPkh() 
    {
        return pkh;
    }
    public void setBlack(String black) 
    {
        this.black = black;
    }

    public String getBlack() 
    {
        return black;
    }
    public void setOrgId(String orgId) 
    {
        this.orgId = orgId;
    }

    public String getOrgId() 
    {
        return orgId;
    }
    public void setManagerId(String managerId) 
    {
        this.managerId = managerId;
    }

    public String getManagerId() 
    {
        return managerId;
    }
    public void setLuojiJingdu(String luojiJingdu) 
    {
        this.luojiJingdu = luojiJingdu;
    }

    public String getLuojiJingdu() 
    {
        return luojiJingdu;
    }
    public void setLuojiWeidu(String luojiWeidu) 
    {
        this.luojiWeidu = luojiWeidu;
    }

    public String getLuojiWeidu() 
    {
        return luojiWeidu;
    }
    public void setZhenshiJingdu(String zhenshiJingdu) 
    {
        this.zhenshiJingdu = zhenshiJingdu;
    }

    public String getZhenshiJingdu() 
    {
        return zhenshiJingdu;
    }
    public void setZhenshiWeidu(String zhenshiWeidu) 
    {
        this.zhenshiWeidu = zhenshiWeidu;
    }

    public String getZhenshiWeidu() 
    {
        return zhenshiWeidu;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setIsExpand(String isExpand) 
    {
        this.isExpand = isExpand;
    }

    public String getIsExpand() 
    {
        return isExpand;
    }
    public void setIfGtgsh(String ifGtgsh) 
    {
        this.ifGtgsh = ifGtgsh;
    }

    public String getIfGtgsh() 
    {
        return ifGtgsh;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setFeedBack(String feedBack) 
    {
        this.feedBack = feedBack;
    }

    public String getFeedBack() 
    {
        return feedBack;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setFddbr(String fddbr) 
    {
        this.fddbr = fddbr;
    }

    public String getFddbr() 
    {
        return fddbr;
    }
    public void setFddbrzjhm(String fddbrzjhm) 
    {
        this.fddbrzjhm = fddbrzjhm;
    }

    public String getFddbrzjhm() 
    {
        return fddbrzjhm;
    }
    public void setSjjyr(String sjjyr) 
    {
        this.sjjyr = sjjyr;
    }

    public String getSjjyr() 
    {
        return sjjyr;
    }
    public void setSjjyrzjhm(String sjjyrzjhm) 
    {
        this.sjjyrzjhm = sjjyrzjhm;
    }

    public String getSjjyrzjhm() 
    {
        return sjjyrzjhm;
    }
    public void setShZjhm(String shZjhm) 
    {
        this.shZjhm = shZjhm;
    }

    public String getShZjhm() 
    {
        return shZjhm;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("hjbh", getHjbh())
            .append("hzxm", getHzxm())
            .append("name", getName())
            .append("idCard", getIdCard())
            .append("sex", getSex())
            .append("age", getAge())
            .append("yhzgx", getYhzgx())
            .append("sssjsq", getSssjsq())
            .append("sssq", getSssq())
            .append("longLive", getLongLive())
            .append("address", getAddress())
            .append("jzAddress", getJzAddress())
            .append("labour", getLabour())
            .append("joinActive", getJoinActive())
            .append("customerType", getCustomerType())
            .append("level", getLevel())
            .append("pkh", getPkh())
            .append("black", getBlack())
            .append("orgId", getOrgId())
            .append("managerId", getManagerId())
            .append("luojiJingdu", getLuojiJingdu())
            .append("luojiWeidu", getLuojiWeidu())
            .append("zhenshiJingdu", getZhenshiJingdu())
            .append("zhenshiWeidu", getZhenshiWeidu())
            .append("phone", getPhone())
            .append("isExpand", getIsExpand())
            .append("ifGtgsh", getIfGtgsh())
            .append("delFlag", getDelFlag())
            .append("feedBack", getFeedBack())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("updateTime", getUpdateTime())
            .append("fddbr", getFddbr())
            .append("fddbrzjhm", getFddbrzjhm())
            .append("sjjyr", getSjjyr())
            .append("sjjyrzjhm", getSjjyrzjhm())
            .append("shZjhm", getShZjhm())
            .toString();
    }
}
